package Month09.day0903;

public class Date {
    public int year;
    public int month;
    public int day;

    public void setDate(Date this,int y,int m,int d) {
        this.year = y;
        this.month = m;
        this.day = d;
    }

    public void print(Date this){
        System.out.println("日期是："+ this.year + "-" + this.month + "-" + this.day);
    }

    public static void main(String[] args) {
        Date d1 = new Date();
        d1.setDate(2021,9,1);
        d1.print();
        System.out.println("========================");
        Date d2 = new Date();
        d2.setDate(2021,9,2);
        d1.print();
        System.out.println("========================");
        Date d3 = new Date();
        d3.setDate(2021,9,3);
        d3.print();
    }
}
